package com.modouyu.service;

import com.modouyu.hystrix.HelloHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * ${DESCRIPTION}
 *
 * @author yangcb
 * @email mudouyu@aliyun.com
 * @create 2018-04-12 9:59
 **/
@FeignClient(value = "spring-cloud-provider", fallback = HelloHystrix.class)
public interface HelloService {
    @RequestMapping(value = "hello", method = RequestMethod.GET)
    String hello();

}
